from api import login

test_data = [{"username": "13488888888", "password": "123456"},
             {"username": "", "password": "123456"}]

for i in test_data:
 phone = i.get("username")
 rst = login(phone)
 print(rst)
 if phone == "13488888888":
     assert "账号正确" == rst
 else:
     assert "账号错误" == rst